﻿using RMM.FrameWork;
using RMM.Massagists;
using RMM.UserAppService;
using RMM.Users.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;

namespace RMM.Web.Controllers
{
    public class UserController : RMMControllerBase
    {
        private readonly IUserAppService _userAppService;
        private readonly IMassagistAppService _massagistAppService;

        public UserController(IUserAppService userAppService
            , IMassagistAppService  massagistAppService)
        {
            _userAppService = userAppService;
            _massagistAppService = massagistAppService;
        }

        [HttpGet]
        public async Task<JsonResult> CheckUserAsync(long userId)
        {
            var c = await CommonHelper.GetAsync<WxLoginDto>("");
            var result = await _massagistAppService.GetMassagistList(new Massagists.Dtos.MassagistInputDto());
            return Json(result);
        }

        public JsonResult Index()
        {
            return Json(new { code = -999,data = "",msg = "登陆超时" },JsonRequestBehavior.AllowGet);
        }
    }
}